package com.hudilao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hudilao.entity.SetmealDish;
import com.hudilao.mapper.SetmealDishMapper;
import com.hudilao.service.SetmealDishService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class SetmealDishServiceImpl extends ServiceImpl<SetmealDishMapper, SetmealDish> implements SetmealDishService {

    @Autowired
    private SetmealDishMapper setmealDishMapper;

    @Override
    public void saveBatch(List<SetmealDish> setmealDishes) {

        setmealDishMapper.insertBatchSomeColumn(setmealDishes);
    }

}
